package com.fingard.dsp.bank.reqrespobj.closeorder;

import java.util.HashMap;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;

public class RetAtsCloseOrder  extends RetAtsBase{
	public RetAtsCloseOrder(ReqRespHeader p_header){
		retHeader = p_header;
		closeState = CloseOrderState.Exception;
	}
	public String respCode;
    public String respInfo;
    /** 订单号 */
    public String rdSeq;

    public CloseOrderState closeState;
    public String errorCode;
    public String errorMsg;
    
    public HashMap<String,String> getRetAtsHashMap(){
    	HashMap<String,String> retHash = new HashMap<String,String>();
    	
    	retHash.put("RespCode", respCode);
    	retHash.put("RespInfo", respInfo);
    	retHash.put("RdSeq", rdSeq);
    	
    	if(closeState == CloseOrderState.Close_Success){
    		retHash.put("TransState", "close_success");
    	}else if(closeState == CloseOrderState.Close_Fail){
    		retHash.put("TransState", "close_fail");
    	}else{
    		retHash.put("TransState", "exception");
    	}
    	retHash.put("ErrorCode", errorCode);
    	retHash.put("ErrorMsg", errorMsg);
    	return retHash;
    }
}
